﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

#pragma warning disable CA1814 // Prefer jagged arrays over multidimensional

namespace TrackSystem.EntityFramework.Migrations
{
    /// <inheritdoc />
    public partial class cm11 : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DeleteData(
                table: "AspNetRoles",
                keyColumn: "Id",
                keyValue: "1f43f2ad-3881-43ca-ac7d-87ce63def8bb");

            migrationBuilder.DeleteData(
                table: "AspNetRoles",
                keyColumn: "Id",
                keyValue: "2e3c9f97-8240-415b-8ecb-b7581a87f975");

            migrationBuilder.DeleteData(
                table: "AspNetRoles",
                keyColumn: "Id",
                keyValue: "b377bf4e-a38f-4ba1-a383-41c1052a0c54");

            migrationBuilder.DeleteData(
                table: "AspNetRoles",
                keyColumn: "Id",
                keyValue: "cd3a9b96-b553-4e6e-8d8b-ae4d07171b2e");

            migrationBuilder.DeleteData(
                table: "AspNetRoles",
                keyColumn: "Id",
                keyValue: "d5cb7cd0-82bb-4091-8711-7ad97adb930f");

            migrationBuilder.RenameColumn(
                name: "happenDt",
                table: "Alarm",
                newName: "HappenDt");

            migrationBuilder.RenameColumn(
                name: "createDt",
                table: "Alarm",
                newName: "CreateDt");

            migrationBuilder.RenameColumn(
                name: "confirmDt",
                table: "Alarm",
                newName: "ConfirmDt");

            migrationBuilder.AddColumn<Guid>(
                name: "Identify",
                table: "Alarm",
                type: "char(36)",
                nullable: false,
                defaultValue: new Guid("00000000-0000-0000-0000-000000000000"),
                collation: "ascii_general_ci");

            migrationBuilder.InsertData(
                table: "AspNetRoles",
                columns: new[] { "Id", "ConcurrencyStamp", "Name", "NormalizedName" },
                values: new object[,]
                {
                    { "213a61b2-b297-4e59-98f8-07f2974005c2", null, "Op", "Operator" },
                    { "4e943962-c294-4db4-9421-d9fa3c2f2061", null, "Guest", "Guest" },
                    { "946bf491-59d6-4788-96b1-0a98c358f226", null, "Eng", "Engineer" },
                    { "aa5893de-e696-4b53-8019-39950930301f", null, "Admin", "ADMIN" },
                    { "c1d6cf2e-6885-4f8c-8c02-d4d1c46a0d84", null, "User", "User" }
                });
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DeleteData(
                table: "AspNetRoles",
                keyColumn: "Id",
                keyValue: "213a61b2-b297-4e59-98f8-07f2974005c2");

            migrationBuilder.DeleteData(
                table: "AspNetRoles",
                keyColumn: "Id",
                keyValue: "4e943962-c294-4db4-9421-d9fa3c2f2061");

            migrationBuilder.DeleteData(
                table: "AspNetRoles",
                keyColumn: "Id",
                keyValue: "946bf491-59d6-4788-96b1-0a98c358f226");

            migrationBuilder.DeleteData(
                table: "AspNetRoles",
                keyColumn: "Id",
                keyValue: "aa5893de-e696-4b53-8019-39950930301f");

            migrationBuilder.DeleteData(
                table: "AspNetRoles",
                keyColumn: "Id",
                keyValue: "c1d6cf2e-6885-4f8c-8c02-d4d1c46a0d84");

            migrationBuilder.DropColumn(
                name: "Identify",
                table: "Alarm");

            migrationBuilder.RenameColumn(
                name: "HappenDt",
                table: "Alarm",
                newName: "happenDt");

            migrationBuilder.RenameColumn(
                name: "CreateDt",
                table: "Alarm",
                newName: "createDt");

            migrationBuilder.RenameColumn(
                name: "ConfirmDt",
                table: "Alarm",
                newName: "confirmDt");

            migrationBuilder.InsertData(
                table: "AspNetRoles",
                columns: new[] { "Id", "ConcurrencyStamp", "Name", "NormalizedName" },
                values: new object[,]
                {
                    { "1f43f2ad-3881-43ca-ac7d-87ce63def8bb", null, "Admin", "ADMIN" },
                    { "2e3c9f97-8240-415b-8ecb-b7581a87f975", null, "Op", "Operator" },
                    { "b377bf4e-a38f-4ba1-a383-41c1052a0c54", null, "Guest", "Guest" },
                    { "cd3a9b96-b553-4e6e-8d8b-ae4d07171b2e", null, "Eng", "Engineer" },
                    { "d5cb7cd0-82bb-4091-8711-7ad97adb930f", null, "User", "User" }
                });
        }
    }
}
